<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets">

  <h:outputScript target="#{pageJsTarget}">
    var currentConversationId = '#{nxu:javaScriptEscape(nxu:htmlEscape(org.jboss.seam.core.manager.currentConversationId))}';
    var currentDocURL = '#{currentServerLocation.name}/#{currentDocument.id}';
    var currentDocumentPath = '#{nxu:javaScriptEscape(currentDocument.pathAsString)}';
    var currentDocumentId = '#{currentDocument.id}';
    var nxContextPath = '#{contextPath}';
    var currentUserLang = "#{localeSelector.language}";
  </h:outputScript>

</ui:fragment>
